import { isBackMenu, systemTitle } from '@/config'
import i18n from '@/locale'
const { t } = i18n.global

export function changeTitle(name) {
  document.title = isBackMenu
    ? `${name}-${systemTitle}`
    : `${t(name)}-${t(systemTitle)}`;
}
